<?php

class Application_Form_Situacao extends Zend_Form
{

    public function init()
    {
        $this->setName('situacao');
        $id = new Zend_Form_Element_Hidden('idtipo_situacao');
        $id->addFilter('Int');
        $situacao = new Zend_Form_Element_Text('situacao');
        $situacao->setLabel('Situacao')
            ->setRequired(true)
            ->addFilter('StripTags')
            ->addFilter('StringTrim')
            ->addValidator('NotEmpty')
            ->setOptions(array('class'=>'form-control'));
;
        $submit = new Zend_Form_Element_Submit('submit');
        $submit -> setOptions(array('class'=>'btn btn-primary'));
        $submit->setAttrib('idtipo_situacao', 'submitbutton');
        $this->addElements(array($id, $situacao, $submit));
    }


}

